package com.ys.sboot.config.corecfg.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>@description:权限异常定义</p>
 *
 * @author yangshuang
 * @version 1.0
 * @date 18-5-11 下午10:07
 */
@Getter
@Setter
public class AuthException extends RuntimeException {

    private String message;//信息
    private Integer code;//验证码

    public AuthException() {
        super();
    }


    /**
     * @param message 错误信息
     * @param code    响应码
     */
    public AuthException(String message, Integer code) {
        super(message);
        this.code = code;
        this.message = message;
    }

    /**
     * @param message,e
     */
    public AuthException(String message, Throwable e) {
        super(message, e);

    }
}
